package com.andy.blog.admin.service;

import com.andy.blog.admin.dto.ArticleDTO;
import com.andy.blog.admin.dto.ArticleHomeDTO;
import com.andy.blog.admin.dto.ArticleHomeDetailDTO;
import com.andy.blog.admin.dto.ArticleRecommendDTO;
import com.andy.blog.admin.dto.ArticleTagInfoDTO;
import com.andy.blog.common.page.PageUtilsDTO;
import com.andy.blog.dal.vo.ArticleVO;

import java.util.List;

/**
 * Created by andy on 2023/6/22 18:34
 */
public interface ArticleBusService {

    /**
     * 分页查询
     */
    PageUtilsDTO<ArticleTagInfoDTO> selectListByPage(ArticleVO articleVO);

    /**
     * 根据条件查询
     */
    List<ArticleDTO> selectList(ArticleVO articleVO);

    /**
     * 新增
     */
    void addArticle(ArticleVO articleVO);

    /**
     * 根据id查询
     */
    ArticleDTO selectArticleById(Long id);

    /**
     * 修改
     */
    void updateArticle(ArticleVO articleVO);

    /**
     * 查询首页博客列表
     */
    PageUtilsDTO<ArticleHomeDTO> listArticleHome(ArticleVO articleVO);

    /**
     * 查看文章信息
     */
    ArticleHomeDetailDTO getArticleHomeById(Long articleId);



    /**
     * 推荐
     */
    List<ArticleRecommendDTO> listArticleRecommendVO();
}
